public class ex1 {
    public static void main(String[] args) {
        char[] s =
                {'序', '顺', '符', '字', '组', '数', '倒', '颠'};
        for (int i = 0; i < s.length/2; i++){
            char c = s[i];
            s[i] = s[s.length-1];
            s[s.length-1] = c;
        }
        System.out.println(s);
    }
}